<%@ page language="java" contentType="text/html;charset=utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="zh-cn" class="no-js">
<!--<![endif]-->
<head>
    <jsp:include page="../common/common.jsp"/>
    <link rel="stylesheet" type="text/css" href="${path}/assets/plugins/select2/select2.css"/>
    <link rel="stylesheet" type="text/css" href="${path}/assets/plugins/select2/select2-metronic.css"/>
    <link rel="stylesheet" href="${path}/assets/plugins/data-tables/DT_bootstrap.css"/>
</head>
<body class="page-header-fixed page-sidebar-fixed">
<!-- BEGIN HEADER -->
<jsp:include page="../common/header.jsp"/>
<div class="clearfix">
</div>
<!-- BEGIN CONTAINER -->
<div class="page-container">
    <div class="page-sidebar-wrapper"><jsp:include page="../common/menu.jsp"/></div>
    <div class="page-content-wrapper">
        <div class="page-content">
            <!-- BEGIN PAGE CONTENT-->
            <div class="row">
                <div class="col-md-12">
                    <!-- BEGIN EXAMPLE TABLE PORTLET-->
                    <div class="portlet box purple">
                        <div class="portlet-title">
                            <div class="caption"><i class="fa fa-users"></i>操作人员管理</div>
                            <div class="tools">
                                <div class="actions">
                                    <button type="button" id="btnAddNew" class="btn blue">增加</button>
                                    <button type="button" id="btnUpdate" class="btn green">修改</button>
                                    <button type="button" id="btnStart" class="btn yellow">启用</button>
                                    <button type="button" id="btnStop" class="btn blue">停用</button>
                                    <button type="button" id="btnRePwd" class="btn blue">密码重置</button>
                                    <button type="button" id="btnDel" class="btn red"><i class="fa fa-trash-o"></i> 删除
                                    </button>
                                </div>
                            </div>
                        </div>
                             <div class="portlet-body">
                            <form id="formQuery" class="form-horizontal" action="${path}/mall/list">
                                <div class="form-body">
                                    
                                    <div class="form-group">
                                       
                                        
                                            <label class="col-md-1 control-label">所属机构</label>
                                        <div class="col-md-2">
                                         
                                            <select id="orgid" name="organid" class="form-control">
                                                <option value="">所有</option>
                                                <c:forEach items="${classList}" var="c">
                                                    <option value="${c.id}">${c.organame}</option>
                                                </c:forEach>
                                            </select>  
                                             
                                        </div>
                                        
                                         <label class="col-md-1 control-label">用户名</label>
                                        <div class="col-md-2">
                                            <input type="text" id="uame" name="username" class="form-control"/>
                                        </div>  
                                      
                                        
                                               <div class="col-md-1">
                                            <button type="button" class="btn green" onclick="getmallList()">查询</button>      <!-- e 查询直接调用getNewsList() 在本末的script中-->
                                        </div>        
                              </div>   
                    
                                </div>
                            </form>
                            <table class="table table-striped table-bordered table-hover" id="mallList"></table>   
                        </div>
                        <div class="portlet-body">
                            <div id="maingrid"></div>

                            <div class="l-clear"></div>
                            <div id="ajax-modal" class="modal fade bs-modal-lg" tabindex="-1" role="dialog"
                                 data-keyboard="false">
                                <div class="modal-dialog modal-lg">
                                    <div class="modal-content">
                                        <div class="modal-header">
                                            <button type="button" class="close" data-dismiss="modal"></button>
                                            <h4 class="modal-title">详细信息</h4>
                                        </div>
                                        <div class="modal-body" style="padding: 20px 20px 0px 20px;">
                                            <div class="row">
                                                <div class="col-md-8">
                                                    <div class="portlet box purple ">
                                                        <div class="portlet-title">
                                                            <div class="caption">
                                                                <i class="fa fa-reorder"></i> 基本信息
                                                            </div>
                                                        </div>
                                                        <div class="portlet-body form">
                                                            <form id="formDetail" class="form-horizontal">
                                                                <div class="form-body">
                                                                    <input type="hidden" id="id" name="id"/>

                                                                    <div class="form-group">
                                                                        <label class="col-md-3 control-label">机构:
                                                                            <span class="required">*</span>
                                                                        </label>

                                                                        <div class="col-md-5">
                                                                            <input type="hidden" id="organid"
                                                                                   name="organid">
                                                                            <input type="text" id="organname"
                                                                                   name="organname" readonly="readonly"
                                                                                   class="form-control measure-input"/>
                                                                        </div>
                                                                    </div>
                                                                    <div class="form-group">
                                                                        <label class="col-md-3 control-label">用户名称:
                                                                            <span class="required">*</span>
                                                                        </label>

                                                                        <div class="col-md-5">
                                                                            <input type="text"  id="username"
                                                                                   name="username"
                                                                                   class="form-control measure-input"/>
                                                                        </div>
                                                                        <div class="col-md-4">
                                                                            可输入<b><span id="title_len">80</span></b> 个字符
                                                                        </div>
                                                                    </div>
                                                                    <div class="form-group">
                                                                        <label class="col-md-3 control-label">真实姓名:
                                                                            <span class="required">*</span>
                                                                        </label>

                                                                        <div class="col-md-5">
                                                                            <input type="text" id="realname"
                                                                                   name="realname"
                                                                                   class="form-control measure-input"/>
                                                                        </div>
                                                                    </div>
                                                                    
                                                                       <div class="form-group">
                                                                        <label class="col-md-3 control-label">线路:
                                                                            <span class="required">*</span>
                                                                        </label>

                                                                           <div class="col-md-8 checkboxio-list"  id="zxlist">
                                                                         <input type="hidden"  id="zxl">
                                                                         <input type="hidden"  id="bxl">
                                                                        </div>
                                                                        
                                                                    </div>
                                                                    
                                                                <!--      <div class="form-group">
                                                                        <label class="col-md-3 control-label">备用线路:
                                                                            <span class="required">*</span>
                                                                        </label>

                                                                        <div class="col-md-8 checkboxio-list"  id="bxlist">
                                                                           
                                                                        </div>
                                                                    </div> --> 
                                                                    
                                                                    <div class="form-group">
                                                                        <label class="col-md-3 control-label">用户密码  :
                                                                        </label>

                                                                        <div class="col-md-5">
                                                                            <input type="password" id="passwd"
                                                                                   name="passwd" class="form-control"/>
                                                                        </div>
                                                                    </div>   
                                                                     <input type="hidden"   value="${istype}"  id="roleid"  name="roleid"  /> <span style="color: red;">  (注)：如果不修改密码，请填空。</span>  
                                                                </div>
                                                               
                                                            </form>
                                                            
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-md-4">
                                                    <div class="portlet green box">
                                                        <div class="portlet-title">
                                                            <div class="caption">
                                                                <i class="fa fa-cogs"></i> 机构列表
                                                            </div>
                                                        </div>
                                                        <div class="portlet-body" style="height: 360px">
                                                            <div id="orgTree" class="l-scroll"></div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="modal-footer">
                                            <button type="button" class="btn default" data-dismiss="modal">关闭</button>
                                            <button type="button" class="btn green" onclick="save()">保存</button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<input type="hidden"  id="istype"  value="${istype}"/>
<jsp:include page="../common/footer.jsp"/>
<link href="${path}/assets/plugins/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css"/>
<link href="${path}/assets/plugins/ligerUI/skins/Gray/css/all.css" rel="stylesheet"/>
<script src="${path}/assets/plugins/ligerUI/js/core/base.js" type="text/javascript"></script>
<script src="${path}/assets/plugins/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
<script src="${path}/assets/plugins/ligerUI/js/plugins/ligerResizable.js" type="text/javascript"></script>
<script src="${path}/assets/plugins/ligerUI/js/plugins/ligerDrag.js"></script>
<script src="${path}/assets/plugins/ligerUI/js/plugins/ligerDialog.js"></script>
<script src="${path}/assets/plugins/ligerUI/js/plugins/ligerTree.js"></script>
<script src="${path}/assets/plugins/select2/select2.min.js" type="text/javascript"></script>
<script src="${path}/platform/js/user.js"></script>
</body>
<!-- END BODY -->
</html>

